package com.szrt.java.day20161223.myDemo;

import java.util.Scanner;

import org.junit.Test;

public class StudentDetail {

	@Test
	public void studentDetail(){
		
		Scanner sc = new Scanner(System.in);
		
		System.out.println("请输入你的姓名：");
		String name = sc.next();
		
		System.out.println("请输入你的性别：");
		String sex = sc.next();
		
		System.out.println("请输入你的考试成绩：");
		String score = sc.next();
		
		sc.close();
		
		System.out.println("你的详细信息为：");
		System.out.println("姓名："+name+" 性别："+sex+" 考试成绩："+score);
	}
}
